"""
 块描述
"""

# a = 22
# print(a)
# mode = True
# if mode:
#     print("happy")
# elif not mode:
#     print("no happy")
# else:
#     print('default')

# a = 1
# b = 2
# if a > b:
#     print('left')
# else:
#     print('right')

'''
    # 常量
    NAME = 'HAHA'
'''
'''
NUM = 0
name = 'ye'
password = '123'

print('zhanghao:')
user_account = input()

print('nima:')
user_password = input()

# print(type(user_password))

if user_account == name and user_password == password:
    NUM += 2
    print('success')
else:
    NUM += 1
    print('fail')
print(NUM)
# 末尾要空一行

if NUM == 2:
    pass  # 占位符, 暂时不做处理
'''
# a = 1
# b = 0
# c = a or b
# print(c)

# while
#
# num = 0
# while num < 10:
#     print(num)
#     num += 1
# else:  # while执行完毕之后自动执行
#     print("执行完毕")

# for循环
# fruits = ['apple', 'banana', 'orange', 'grape']
# dicts = {'a': 1, 'b': 2, 3: 4}
# for fruit in fruits:
#     print(fruit)
# for d in dicts:
#     print(d)


# for i in range(0, 10, 2):  # 第三个参数是步长
#     print(i)

# l = [1, 2, 3, 4, 5, 6, 7, 8, 9]
#
# for i in range(0, len(l), 2):
#     print(l[i], end='|')
#
# new_l = l[0:len(l):2]
# print(new_l)

# 模块引用
# import bao.mo_kuai as mo_kuai

# print(mo_kuai.a)

# from bao.mo_kuai import a
#
# print(a)

# from bao.mo_kuai import *
#
# print(a)
# print(b)

# import bao.mo_kuai as mo_kuai
#
# print(mo_kuai.a)

# 相对导入

from bao import mo_kuai

print(mo_kuai.a)

print(__package__)

# print(__dir__)

print(__file__)
